package com.guigu.qingcheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@ToString
@ApiModel("")
@Table(name = "tb_role_resource")
public class TbRoleResource {
    /**
     * 
     */
    @ApiModelProperty(value = "")
    @NotNull(message="不能为空")
    @Id
    @Column(name = "role_id")
    private Integer roleId;

    /**
     * 
     */
    @ApiModelProperty(value = "")
    @NotNull(message="不能为空")
    @Id
    @Column(name = "resource_id")
    private Integer resourceId;

    /**
     * @return role_id
     */
    public Integer getRoleId() {
        return roleId;
    }

    /**
     * @param roleId
     */
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    /**
     * @return resource_id
     */
    public Integer getResourceId() {
        return resourceId;
    }

    /**
     * @param resourceId
     */
    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }
}